import iView from 'view-design'

// 将错误消息提示改为对话框提示
iView.Message.error = (options) => {
  iView.Modal.remove()
  setTimeout(() => {
    iView.Modal.error({
      title: '执行提示',
      content: options
    })
  }, 500)
}

// 将成功消息提示改为对话框提示
iView.Message.success = (options) => {
  setTimeout(() => {
    iView.Modal.success({
      title: '执行提示',
      content: options
    })
  }, 500)
}

// 将警告消息提示改为对话框提示
iView.Message.warning = (options) => {
  iView.Modal.warning({
    title: '执行提示',
    content: options
  })
}
export default iView
